package com.dykj.entity;

import java.io.Serializable;

/**
 * blankstock
 * @author 
 */
public class Blankstock implements Serializable {
    private String k3materialnumber;

    private String itemname;

    private String itemmodal;

    private String itemmodalmore;

    private String numberunit;

    private String weight;

    private String position;

    private String warehousecode;

    private String batchno;

    private String ingotnumber;

    private String sectionnumber;

    private static final long serialVersionUID = 1L;

    public String getK3materialnumber() {
        return k3materialnumber;
    }

    public void setK3materialnumber(String k3materialnumber) {
        this.k3materialnumber = k3materialnumber;
    }

    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    public String getItemmodal() {
        return itemmodal;
    }

    public void setItemmodal(String itemmodal) {
        this.itemmodal = itemmodal;
    }

    public String getItemmodalmore() {
        return itemmodalmore;
    }

    public void setItemmodalmore(String itemmodalmore) {
        this.itemmodalmore = itemmodalmore;
    }

    public String getNumberunit() {
        return numberunit;
    }

    public void setNumberunit(String numberunit) {
        this.numberunit = numberunit;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getWarehousecode() {
        return warehousecode;
    }

    public void setWarehousecode(String warehousecode) {
        this.warehousecode = warehousecode;
    }

    public String getBatchno() {
        return batchno;
    }

    public void setBatchno(String batchno) {
        this.batchno = batchno;
    }

    public String getIngotnumber() {
        return ingotnumber;
    }

    public void setIngotnumber(String ingotnumber) {
        this.ingotnumber = ingotnumber;
    }

    public String getSectionnumber() {
        return sectionnumber;
    }

    public void setSectionnumber(String sectionnumber) {
        this.sectionnumber = sectionnumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Blankstock other = (Blankstock) that;
        return (this.getK3materialnumber() == null ? other.getK3materialnumber() == null : this.getK3materialnumber().equals(other.getK3materialnumber()))
                && (this.getItemname() == null ? other.getItemname() == null : this.getItemname().equals(other.getItemname()))
                && (this.getItemmodal() == null ? other.getItemmodal() == null : this.getItemmodal().equals(other.getItemmodal()))
                && (this.getItemmodalmore() == null ? other.getItemmodalmore() == null : this.getItemmodalmore().equals(other.getItemmodalmore()))
                && (this.getNumberunit() == null ? other.getNumberunit() == null : this.getNumberunit().equals(other.getNumberunit()))
                && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
                && (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()))
                && (this.getWarehousecode() == null ? other.getWarehousecode() == null : this.getWarehousecode().equals(other.getWarehousecode()))
                && (this.getBatchno() == null ? other.getBatchno() == null : this.getBatchno().equals(other.getBatchno()))
                && (this.getIngotnumber() == null ? other.getIngotnumber() == null : this.getIngotnumber().equals(other.getIngotnumber()))
                && (this.getSectionnumber() == null ? other.getSectionnumber() == null : this.getSectionnumber().equals(other.getSectionnumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getK3materialnumber() == null) ? 0 : getK3materialnumber().hashCode());
        result = prime * result + ((getItemname() == null) ? 0 : getItemname().hashCode());
        result = prime * result + ((getItemmodal() == null) ? 0 : getItemmodal().hashCode());
        result = prime * result + ((getItemmodalmore() == null) ? 0 : getItemmodalmore().hashCode());
        result = prime * result + ((getNumberunit() == null) ? 0 : getNumberunit().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
        result = prime * result + ((getWarehousecode() == null) ? 0 : getWarehousecode().hashCode());
        result = prime * result + ((getBatchno() == null) ? 0 : getBatchno().hashCode());
        result = prime * result + ((getIngotnumber() == null) ? 0 : getIngotnumber().hashCode());
        result = prime * result + ((getSectionnumber() == null) ? 0 : getSectionnumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", k3materialnumber=").append(k3materialnumber);
        sb.append(", itemname=").append(itemname);
        sb.append(", itemmodal=").append(itemmodal);
        sb.append(", itemmodalmore=").append(itemmodalmore);
        sb.append(", numberunit=").append(numberunit);
        sb.append(", weight=").append(weight);
        sb.append(", position=").append(position);
        sb.append(", warehousecode=").append(warehousecode);
        sb.append(", batchno=").append(batchno);
        sb.append(", ingotnumber=").append(ingotnumber);
        sb.append(", sectionnumber=").append(sectionnumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}